<template>
  <div class="empty">
    <image class="empty__image" :src="image" />
    <div class="empty__description">
      {{ description }}
    </div>
    <div class="empty__footer">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import { empty } from '@/tool/static-img'
export default {
  name: 'Empty',
  props: {
    description: {
      type: String,
      default: '',
    },
    image: {
      type: String,
      default: empty,
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped lang="less">
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding-top: 200rpx;
  &__image {
    width: 308rpx;
    height: 308rpx;
  }
  &__description {
    padding: 0 60rpx;
    color: #999999;
    font-size: 28rpx;
  }
  &__footer {
    margin-top: 48rpx;
  }
}
</style>
